import { Resp } from './common.interface.ts'

export interface PhoneData {
  openWorkOrder: number
}

export interface PhoneResponse extends Resp, PhoneData {}

export interface PhoneStatus {
  statusCode: number
  threshold: number
}

export interface PhoneCardInfo {
  // 卡片基本信息
  iccid: string
  imsi: null | string
  sim: string
  virtualId: string
  cardId: number
  cardType: number

  // 流量相关
  totalFlow: number
  usedFlow: number
  residualFlow: number

  // 语音相关
  totalVoice: null | number
  usedVoice: null | number
  residualVoice: null | number

  // 短信相关
  smsNum: number
  sendSmsNum: number
  showSms: number

  // 状态相关
  status: string
  statusCode: number
  isRealName: number
  isBind: number
  isHuiDe: number

  // 套餐相关
  package: string
  monthly: number
  money: number
  userMoney: number

  // 时间相关
  beginTime: string
  endTime: string

  // 其他配置
  AppID: string
  apnId: string
  hdUrl: string
  operator: number
  passagewayType: number
  whitelistStatus: number
  maxWhitelist: number
  iccids: string[]
}

export interface HolidayInfo {
  code: number
  type: {
    type: number
    name: string
    week: number
  }
  holiday?: {
    [key: string]: string | boolean | number
  }
}
